package cn.ichar.es.es.modular;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: zhangning
 * @Date: 2021/9/9
 */

@Document(indexName = "product_springboot")
public class Product implements Serializable {

    private static final long serialVersionUID = 6967408083333555121L;
    @Id
    int id;
    private String name;
    private String subTitle;
    private float originalPrice;
    private float promotePrice;
    private int stock;
    private Date createDate;
}
